//
//  ZHelpVC.m
//  ZZBlue
//
//  Created by stonesMonkey on 2017/9/10.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZHelpVC.h"

@interface ZHelpVC ()

@property (weak, nonatomic) IBOutlet UILabel *oneLabel;
@property (weak, nonatomic) IBOutlet UILabel *twoLabel;
@property (weak, nonatomic) IBOutlet UILabel *threeLabel;
@property (weak, nonatomic) IBOutlet UILabel *fourLabel;
@property (weak, nonatomic) IBOutlet UILabel *fiveLabel;
@property (weak, nonatomic) IBOutlet UILabel *sixLabel;


@end

@implementation ZHelpVC

- (void)viewDidLoad {
    [super viewDidLoad];
    /**
     "ME_Help_UseBlue" = "如何使用新蓝牙设备？";
     "ME_Help_Type" = "当前应用程序支持什么类型设备?";
     "NE_Help_Range" = "蓝牙设备距离有多远?";
     "ME_Help_NumberController" = "可以同时控制多少个蓝牙设备?";
     "ME_Help_FailHelp" = "如果连接蓝牙设备或添加设备失败，怎么办?";
     "ME_Help_Search" = "无法搜索到蓝牙设备？";
     */
    self.oneLabel.text = NSLocalizedString(@"ME_Help_UseBlue",nil);
    self.twoLabel.text = NSLocalizedString(@"ME_Help_Type",nil);
    self.threeLabel.text = NSLocalizedString(@"NE_Help_Range",nil);
    self.fourLabel.text = NSLocalizedString(@"ME_Help_NumberController",nil);
    self.fiveLabel.text = NSLocalizedString(@"ME_Help_FailHelp",nil);
    self.sixLabel.text = NSLocalizedString(@"ME_Help_Search",nil);
    self.tableView.backgroundColor = GENERAL_VIEW_BG_COLOR;
    
    UIView *headerView = [UIView new];
    headerView.frame = CGRectMake(0, 0, Z_SCREEN_WIDTH, 20);
    headerView.backgroundColor = [UIColor clearColor];
    
    self.tableView.tableHeaderView = headerView;
    
    UILabel *label = [UILabel new];
    label.font = [UIFont systemFontOfSize:17];
    label.text =  NSLocalizedString(@"ME_Help",nil);
    label.textColor = [UIColor whiteColor];
    label.frame = CGRectMake(0, 0, 100, 44);
    self.navigationItem.titleView = label;
    label.textAlignment = NSTextAlignmentCenter;
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setImage:[UIImage imageNamed:@"icon_fanh"] forState:UIControlStateNormal];

    btn.frame = CGRectMake(0, 0, 32, 32);
    [btn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchDown];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:btn];
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    
    
}

#pragma mark - func
- (void)back {
    
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark - delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    
    ZLog(@"打印");
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    return 50;
}


@end
